﻿<%@ WebHandler Language="C#" Class="user" %>

using System;
using System.Web;

public class user : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        object nick = context.Request.QueryString["nickname"];
        string user = context.Request.QueryString["username"];
        if(nick!=null&&user!=null)
        {
            string nickname = System.Web.HttpUtility.UrlDecode(nick.ToString());
            string username = user.ToString();
            TB.Entity.VisitLog log = new TB.Entity.VisitLog();
            TB.BLL.VisitLog logBll = new TB.BLL.VisitLog();
            log.nickname = nickname;
            log.username = username;
            log.visitDate = DateTime.Now;
            log.message = "";
            int ret=logBll.InsertLog(log);
        }
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}